﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Approval.aspx.cs" Inherits="ProductPayReim.Approval" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>生产采购类资金支付及发票报销</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {

            if ($("#fld_ZJZF").attr("checked")) {
                $("#txt_lb").text("资金支付类");
                document.getElementById("DivMoney").style.display = "";
                document.getElementById("DivContract").style.display = "none";
            } else {
                $("#txt_lb").text("发票报销类");
                document.getElementById("DivMoney").style.display = "none";
                document.getElementById("DivContract").style.display = "";
            }
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Label ID="var_SQJE" runat="server"></asp:Label>
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="生产采购类资金支付及发票报销" processprefix="CIE" tablename="PROC_PRODUCTPAYREIM"
                tablenamedetail="PROC_PRODUCTPAYREIM_DETAIL" readonly="true" runat="server">
            </ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <thead class="table table-condensed table-bordered">
                    <tr>
                        <td class="banner" colspan="4">
                            <asp:Label ID="txt_lb" runat="server"></asp:Label>
                            <div style="display: none">
                                <span onclick="check()">
                                    <asp:RadioButton ID="fld_ZJZF" runat="server" Checked="true" GroupName="rdos" Text="资金支付类" /></span>
                                <span onclick="check()">
                                    <asp:RadioButton ID="fld_FPBX" runat="server" GroupName="rdos" Text="发票报销类" /></span>
                            </div>
                        </td>
                    </tr>
                </thead>
                <tbody id="DivMoney" class="table table-condensed table-bordered">
                    <tr>
                        <td class="td-label">
                            表单类别
                        </td>
                        <td class="td-content" colspan="3">
                            资金支付类
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            是否在预算内：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_SFYS" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            选择中心审批：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_ZXSP" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款金额：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FKJE" runat="server" money="money" Text=""></asp:Label>
                        </td>
                        <td class="td-label">
                            付款金额大写：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FKJEDX" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            开户行：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_KHH" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            银行卡号：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_YHKH" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款信息：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_FKXX" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            选择相关人员：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_XGRYMC" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="11">
                            <table id="tbDetail" class="table table-condensed table-bordered">
                                <tr>
                                    <th>
                                        合同编号
                                    </th>
                                    <th>
                                        收款方名称
                                    </th>
                                    <th>
                                        内容
                                    </th>
                                    <th>
                                        合同金额
                                    </th>
                                    <th>
                                        合同数量
                                    </th>
                                    <th>
                                        入库数量
                                    </th>
                                    <th>
                                        已开票金额
                                    </th>
                                    <th>
                                        已付金额
                                    </th>
                                    <th>
                                        本次所需金额
                                    </th>
                                    <th>
                                        预计付款时间
                                    </th>
                                </tr>
                                <asp:Repeater ID="fld_detail_PROC_PRODUCTPAYREIM_DETAIL" runat="server" OnItemCommand="fld_detail_PROC_PRODUCTPAYREIM_DETAIL_ItemCommand">
                                    <ItemTemplate>
                                        <tr>
                                            <td class="td-content">
                                                <asp:Label ID="fld_FORMID" Text='<%#Eval("FORMID") %>' runat="server" Style="display: none"></asp:Label>
                                                <asp:Label ID="fld_HTBH" Text='<%#Eval("HTBH") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_GYSMC" Text='<%#Eval("GYSMC") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_NR" Text='<%#Eval("NR") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_HTJE" Text='<%#Eval("HTJE") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_HTSL" Text='<%#Eval("HTSL") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_GHSL" Text='<%#Eval("GHSL") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_YKPJE" Text='<%#Eval("YKPJE") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_YFJE" Text='<%#Eval("YFJE") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_SXJE" Text='<%#Eval("SXJE") %>' runat="server"></asp:Label>
                                            </td>
                                            <td class="td-content">
                                                <asp:Label ID="fld_YJFKSJ" Text='<%#Eval("YJFKSJ") %>' runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </td>
                    </tr>
                </tbody>
                <tbody id="DivContract" style="display: none;" class="table table-condensed table-bordered">
                    <tr>
                        <td class="td-label">
                            表单类别
                        </td>
                        <td class="td-content" colspan="3">
                            发票报销类
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票所属公司：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPSSGS" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            选择中心审批：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPZXSP" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票金额：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPJE" runat="server" money="money" onblur="changeRMB_FP();" onkeyup="changeRMB_FP();"></asp:Label>
                        </td>
                        <td class="td-label">
                            发票金额大写：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPJEDX" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票信息：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPXX" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            发票号：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_FPH" runat="server"></asp:Label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" readonly="true" runat="server"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
